<%@ page contentType= "text/html;charset=utf-8" %>

<html>
<%@ include file="../common/base.jsp" %>
<body>

<div id="container">
<%@ include file="../common/header.jsp" %>

	<div id="menu">
	    <a href="<c:url value="/common/home.o"/>"><fmt:message key="Home" /></a>
	    <div  style="float: right" >
	    	<fmt:message key="Logged" />: <c:out value="${currentUser.username}" /> (<a href="<c:url value="/common/logout.o"/>"><fmt:message key="Logout" /></a>)
	    </div>
	</div>
	 
	<div id="midbody">
	    <div id="leftside">
	    		<br>
			    <shiro:hasPermission name="user:manage">
		            <a href="<c:url value="/user/manage.o"/>"><fmt:message key="User" /></a>
		            <br><br>
		         </shiro:hasPermission>
		         <shiro:hasPermission name="role:manage">
		            <a href="<c:url value="/role/manage.o"/>"><fmt:message key="Role" /></a>
		            <br><br>
		         </shiro:hasPermission>
				 <shiro:hasPermission name="process:query">
		            <a href="<c:url value="/step/index.o"/>"><fmt:message key="Task" /></a>
		            <br/><br/>
					<a href="<c:url value="/step/query.o"/>"><fmt:message key="Process" /></a>
		         </shiro:hasPermission>
				 <shiro:hasPermission name="template:manage">
				 	<br><br>
		            <a href="<c:url value="/template/manage.o"/>"><fmt:message key="Template" /></a>
		         </shiro:hasPermission>
				 <shiro:hasPermission name="spec:manage">
				 	<br><br>
		            <a href="<c:url value="/spec/manage.o"/>"><fmt:message key="Spec" /></a>
		         </shiro:hasPermission>
				 <shiro:hasPermission name="dictionary:manage">
				 	<br><br>
		            <a href="<c:url value="/dictionary/ituch/manage.o"/>"><fmt:message key="Dictionary" /></a>
		         </shiro:hasPermission>
	    </div>
		 
		<div id="rightside">
	    	<div id="bigbox">
	    		<div class="title clearfix">
		    		<div style="float: left"><fmt:message key="HomePage" /></div>
					<%@ include file="../common/hidemenu.jsp" %>
	   		 	</div>
	   		 	<div>
	   		 		<img width="858px" src="../img/products_banner.jpg">
	   		 	</div>
			</div>
			<br>
	    	<div id="bigbox">
	    		<div class="title clearfix">
		    		<div style="float: left">
		    			<fmt:message key="MyDashboard" />:&nbsp;
		    		</div>
	   		 	</div>
	   		 	<div style="padding: 5px 5px 5px 15px;font-size: 15px;">
	   		 		<fmt:message key="MyCurTasks" />:&nbsp;
	    			<a href="<c:url value="/step/index.o"/>">
	    			<c:out value="${myCurTasks}" />
	    			</a>
	   		 	</div>
	   		 	<div style="padding: 5px 5px 5px 15px;font-size: 15px;">
	   		 		<fmt:message key="MyFailTasks" />:&nbsp;
	    			<a href="<c:url value="/step/index.o"/>?step=<%= StepActionUtil.TESTRESULT_FAILURE %>">
	    			<c:out value="${myFailTasks}" />
	    			</a>
	   		 	</div>
	   		 	<div style="padding: 5px 5px 5px 15px;font-size: 15px;">
	   		 		<fmt:message key="MyWaiveTasks" />:&nbsp;
	    			<a href="<c:url value="/step/index.o"/>?step=<%= StepActionUtil.TESTRESULT_WAIVE %>">
	    			<c:out value="${myWaiveTasks}" />
	    			</a>
	   		 	</div>
			</div>
		</div>
	</div>
	<%@ include file="../common/foot.jsp" %>
</div>
	  
</body>
</html>
